package com.atguigu.spring.annotation.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.atguigu.spring.annotation.repository.UserRepository;

@Service
public class UserService {
	@Autowired
	@Qualifier("userRepository")
   private UserRepository userRepository;
   public void add(){
	   System.out.println("UserService Add");
	   userRepository.save();
   }
}
